using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class UpgradeRush:Upgrade {

	protected override void ProjectileFiringEventHandler(object _sender,ProjectileEventArgs e) {
		float ownerSpeed = weapon.owner.rigidbody.velocity.magnitude;
		if(ownerSpeed<3) return;
		e.stat.damage.AddMultAdd(Mathf.Clamp((ownerSpeed-4)*5,-0.1f,0.35f),0);
	}

}
